package com.fufufu.mail.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fufufu.common.utils.PageUtils;
import com.fufufu.mail.product.entity.AttrEntity;
import com.fufufu.mail.product.vo.AttrInfoResponeseVo;
import com.fufufu.mail.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zyx
 * @email 1262074394@qq.com
 * @date 2022-09-15 08:15:48
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttr(Map<String, Object> params, Long catelogId);

    AttrInfoResponeseVo getInfo(Long attrId);

    void updateAttrVoById(AttrVo attr);

    PageUtils querySaleAttr(Map<String, Object> params, Long catelogId);

    List<AttrEntity> getAttrByAttrgroupId(Long attrgroupId);

    PageUtils getNoAttrByAttrgroupId(Long attrgroupId, Map<String, Object> params);

    List<AttrEntity> getAttrByAttrgroupIds(List<Long> groupIds);
}

